// axios
import request from '@/utils/request'

// 上传文件
export function uploadFile(file) {
  var files = new File([file], new Date().getTime() + file.name)
  const data = new FormData()
  data.append('file', files)
  return request({
    url: '/uploads/file',
    method: 'post',
    data,
    message: '上传中...'
  })
}
